package com.jeeplus.modules.monitor.task;

import com.jeeplus.modules.monitor.entity.ScheduleJob;
import org.quartz.DisallowConcurrentExecution;

import com.jeeplus.modules.monitor.entity.Task;
import org.springframework.scheduling.annotation.Scheduled;

@DisallowConcurrentExecution  
public class TestTask1 extends Task{

	@Override
	@Scheduled(cron = "0/1 * * * * ? ") // 每隔1秒隔行一次
	public void run(ScheduleJob scheduleJob) {
		System.out.println("这是另一个测试任务TestTask1。");
		
	}

}
